#ifndef PERSONAL_H
#define PERSONAL_H

#include "ChangePass.h"

#include <QWidget>

namespace Ui {
class Personal;
}

class Personal : public QWidget
{
    Q_OBJECT

public:
    explicit Personal(QRect screenGeometry,QString phone, QString id, QString name, QString nation, QString sex, QString blood, QString birth, QString illness, QString irritability,QWidget *parent = nullptr);
    ~Personal();
    void changePersonal(bool r);
    void sendChangeInformation();
    void showPersonal(QString phone, QString id, QString name, QString nation, QString sex, QString blood, QString birth, QString illness, QString irritability);

private slots:
    void on_save_clicked();
    void on_exit_clicked();

    void on_changed_clicked();

signals:
    void toServerSend_signals(QString message);

private:
    Ui::Personal *ui;
    ChangePass *changePass=nullptr;
    QString id;
    QString name;
    QString nation;
    QString sex;
    QString blood;
    QString birth;
    QString illness;
    QString irritability;
    QRect screenGeometry;
};

#endif // PERSONAL_H
